#!/usr/bin/env python
# encoding: utf-8
"""
settings.py

Created by  on 2008-10-19.
Copyright (c) 2008 __MyCompanyName__. All rights reserved.
"""
import os
BUNDLEPATH = '/Contents/Resources/'
TEMPLATE = 'template.plist'
POP_PID='/tmp/pop.pid'
SMTP_PID='/tmp/smtp.pid'
DATA_DIR = '~/Library/Application Support/ExchangeProxy/'
SETTINGS_FILE = DATA_DIR + "settings.plist"
ACCOUNTS_FILE = DATA_DIR + "accounts.plist"
STARTUP_DIR = '~/Library/LaunchAgents/'
POPLAUNCH_FILE="hu.antitalent.popdaemon.plist"
POPLAUNCH_NAME="hu.antitalent.popdaemon"

SMTPLAUNCH_FILE="hu.antitalent.smtpdaemon.plist"
SMTPLAUNCH_NAME="hu.antitalent.smtpdaemon"
DEFAULT_SETTINGS={
	'pop3port':8110,
	'pop3onlogon':False,
	'pop3delay':5,
	'pop3level':1,
	'smtpport':8025,
	'smtplevel':1,
	'smtponlogon':False
}
try:
	if not os.path.exists(os.path.expanduser(DATA_DIR)):
		os.makedirs(DATA_DIR)
except:
	pass